#ifndef TEXTEDITEVENTHANDLER_HPP
#define TEXTEDITEVENTHANDLER_HPP

#include <QObject>
#include <QEvent>
#include <QDebug>
#include <QMouseEvent>
#include <QPoint>
#include <QTimer>

class TextEditEventHandler : public QObject
{
Q_OBJECT
public:
    explicit TextEditEventHandler(QObject *parent = 0);

protected:
    bool eventFilter(QObject *obj, QEvent *event);

private:
    QTimer *singleClickTimer;
    bool mouseReleased;

private slots:
    void onSingleClick();

signals:
    void requestBreakPoint(QPoint point);
    void requestHighlightLine(QPoint point, QPoint startPoint);

};

#endif // TEXTEDITEVENTHANDLER_HPP
